<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
%>
<script type="text/javascript">
	function loadContent(url) {
		$("#mainContent").attr("src", url);
	}
	function setIframeHeight(iframe) {
	   if (iframe) {
		var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
		if (iframeWin.document.body) {
			
		iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
		}
		iframe.style.overflow='auto';
		
		};
	}
	window.onload = function () {
	    setIframeHeight(document.getElementById('mainContent'));
	};
	/* function homePageFormPost(){
	    $("#homePageForm").submit();
	} */
</script>
<div id="div_TC">
	<div class="TC_title">
		<h3 style="color:red">红色*号项为必填项</h3> 
		<input type="button" style="width: 90px;" onclick="homePageFormPost()" class="btn" value="通过编目">
		<a href="${basePath}/medical_record/print?visitGuid=${visitGuid }" class="btn">打印</a>&nbsp;
		<!-- <span style="color:red">红色*号项为必填项</span> -->
		<form action="${basePath}/medical_record/homePageTreamtTrace" method="post" id="homePageForm">
			<input type="hidden" name="visitGuid" value="${visitGuid }">
		</form>
		
	</div>
	<div class="TC_menu">
		<h3>病案结构化数据管理目录</h3>
		<ul role="tablist">
			<li class="TC_li active"><a onclick="loadContent('${basePath}medical_record/edit_home_page_basic_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="baseInfo" role="tab" data-toggle="tab">基本数据</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_cure_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="cureMentInfo" role="tab" data-toggle="tab">治疗信息</a>
			</li>
			
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_diag_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="diagMentInfo" role="tab" data-toggle="tab">疾病诊断</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_operate_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="operateMentInfo" role="tab" data-toggle="tab">手术记录</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_infusion_blood_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="infusionBloodMentInfo" role="tab" data-toggle="tab">输血记录</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_transfer_dept_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="transferDeptMentInfo" role="tab" data-toggle="tab">转科记录</a>
			</li>
 			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_drug_allergy_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="drugAllergyMentInfo" role="tab" data-toggle="tab">药物过敏</a>
			</li>
		<%--	<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_intensive_care_form?visitGuid=${visitGuid}')" aria-controls="intensiveCareMentInfo" role="tab" data-toggle="tab">重症监护</a>
			</li> --%>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_nurse_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="nurseMentInfo" role="tab" data-toggle="tab">护理记录</a>
			<%-- </li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_pressure_sore_form?visitGuid=${visitGuid}')" aria-controls="pressureSoreMentInfo" role="tab" data-toggle="tab">压疮/床褥</a>
			</li> --%>
			<%-- <li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_pregnancy_birth_form?visitGuid=${visitGuid}')" aria-controls="pregnancyBirthMentInfo" role="tab" data-toggle="tab">产科记录</a>
			</li> --%>
       <%-- 	<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_antibacterial_drug_form?visitGuid=${visitGuid}')" aria-controls="antibacterialAgentsMentInfo" role="tab" data-toggle="tab">抗菌药物</a>
			</li> 
			--%>
			 <li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_infection_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="infectionMentInfo" role="tab" data-toggle="tab">医院感染</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_examination_reports_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="examinationReportsMentInfo" role="tab" data-toggle="tab">检验报告单</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_doctor_advice_temporary_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="doctorAdviceTemporaryMentInfo" role="tab" data-toggle="tab">临时医嘱</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_doctor_advice_standing_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="doctorAdviceStandingMentInfo" role="tab" data-toggle="tab">长期医嘱</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_visit_cost_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="visitCostMentInfo" role="tab" data-toggle="tab">住院费用</a></li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_visit_progress_note_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="visitProgressNote" role="tab" data-toggle="tab">病程记录</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_note_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="visitProgressNote" role="tab" data-toggle="tab">表单记录</a>
			</li>
		</ul>
	</div>
	<div class="content_list">
		<div class="tab-content">
			<div role="tabpanel" class="tab-pane active" id="baseInfo">
				<iframe id="mainContent" style="border: 0px;overflow-y:auto;" width="100%"  scrolling="no" src="${basePath }medical_record/edit_home_page_basic_form?visitGuid=${visitGuid}&fileName=${fileName}">	
				</iframe>
			</div>
		</div>
	</div>
</div>
